package com.fowo.api.model.product;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import javax.validation.constraints.*;
import lombok.Data;

/** 关联辅料表 导入导出辅助模型 */
@Data
public class ProductIngredientsExcelPo {

  @ExcelProperty(value = "所属产品")
  private String productIdName;

  @ExcelIgnore
  @ExcelProperty(value = "所属产品")
  private Long productId;

  @NotNull(message = "辅料不能为空")
  @Size(max = 50, message = "辅料长度不能超过20")
  @ExcelProperty(value = "*辅料")
  private String ingredientsIdName;

  @ExcelIgnore
  @ExcelProperty(value = "*辅料")
  private Long ingredientsId;

  @Size(max = 50, message = "辅料SKU长度不能超过20")
  @ExcelProperty(value = "辅料SKU")
  private String sku;

  @Size(max = 10, message = "数量长度不能超过20")
  @ExcelProperty(value = "数量")
  private Integer num;

  @Size(max = 50, message = "备注长度不能超过20")
  @ExcelProperty(value = "备注")
  private String remark;
}
